/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: CustomerObserver
 * Author:   zhouheng
 * Date:     2019/5/1 20:25
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.zhouh.patterns.com.zhouh.action.observer;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author zhouheng
 * @create 2019/5/1
 * @since 1.0.0
 */
public class CustomerObserver implements Observer{
    private String name;

    CustomerObserver(String name){
        this.name = name;
    }

    @Override
    public void update() {
        System.out.println("苹果到货，" + name + "购买苹果");
    }
}